<script setup lang="ts">
import son from './son.vue'
import {ref} from 'vue'
let msg1 = ref('hhh')

const getMessage = (msg:any)=>{
  console.log(msg)
  msg1 = msg
}
</script>

<template>
  <h1>我是爹</h1>
  <son message="this is parent to son" @get-message="getMessage"/>
  <h1>{{ msg1 }}</h1>
</template>